/*----------------------------------------------------------------------------*/
/* Copyright 2011 http://www.kmftech.com                                      */
/*                                                                            */
/* This file is part of kmftech.                                              */
/*                                                                            */
/* kmftech is free software: you can redistribute it and/or modify it under   */
/* the terms of the GNU General Public License as published by the Free       */
/* Software Foundation, version 2 of the License, or (at your option) any     */
/* later version.                                                             */
/*                                                                            */
/* kmftech is distributed in the hope that it will be useful, but WITHOUT ANY */
/* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS  */
/* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more      */
/* details.                                                                   */
/*                                                                            */
/* You should have received a copy of the GNU General Public License along    */
/* with kmftech. If not, see http://www.gnu.org/licenses/.                    */
/*----------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------*/
/*---------------------------- DOCUMENT HISTORY ------------------------------*/
/* Ver: 1.0    Author: Karim Mansour                      Date: 30 April 2011 */
/* Ver: X.X    Author:                                    Date:               */
/*----------------------------------------------------------------------------*/
/*---------------------    DOCUMENT CHANGE HISTORY ---------------------------*/
/* Ver: 1.0    Change: Initial Version.                                       */
/* Ver: X.X    Change:                                                        */
/*----------------------------------------------------------------------------*/


/*                           Needed Header Files                              */
#include <avr/interrupt.h>
#include <inttypes.h>
#include "kmftech_types.h"
#include "rtos.h"

/*kmftech masked interrupts IDs*/
#define TIMER_8BITS_1_OVF TIMER0_OVF_vect


/*                           Functions Prototypes                             */
void vd_bsc_isr_init(void);


/*----------------------------------------------------------------------------*/
/*---------------------------- FUNCTION HEADER -------------------------------*/
/* Name       : vd_isr_init                                                   */
/* Description: Initialize the ISRs                                           */
/* Input(s)   : Input  1: void                                                */
/* Output(s)  : Output 1: void                                                */
/* Author     : Karim Mansour                                                 */
/*----------------------------------------------------------------------------*/
void vd_bsc_isr_init(void)
{
   /*Enable all ISRs*/
   sei();
}

/*----------------------------------------------------------------------------*/
/*------------------------------ ISR HEADER ----------------------------------*/
/* Name       : TIMER0_OVF_vect (Timer8bits1)                                 */
/* Description: Interrupts when Timer8bits1 Overflows                         */
/* Author     : Karim Mansour                                                 */
/*----------------------------------------------------------------------------*/
ISR(TIMER_8BITS_1_OVF)
{
   vd_rtos_tick_generator();
}

/*-----------------------------End Of File------------------------------------*/
